function getUser () {
  return JSON.parse(localStorage.getItem('user'));
}

function setUser (user) {
  localStorage.setItem('user',JSON.stringify(user));
}

function clearUser () {
  localStorage.clear();
}

export { getUser, setUser, clearUser }
